package com.itwn.springcloud.service;

import com.itwn.springcloud.entityes.CommonResult;
import com.itwn.springcloud.entityes.Payment;
import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component  //springboot 访问
@FeignClient("CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {


    @GetMapping(value="/payment/get/{id}")
    public CommonResult<Payment> getPaymentById(@PathVariable("id") Long id);

    @GetMapping("/payment/feign/timeout")
    public String paymentFeignTimeout();




}
